package com.cn.ycy.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class A {

  public static final Logger logger = LoggerFactory.getLogger(A.class);

  @Autowired
  public B b;

  public void doWorkA() {
    logger.info("public");
    b.doWork();
  }

  public String doWorkA2() {
    return b.doWork2();
  }

}
